<#assign s=JspTaglibs["/META-INF/tld/struts-tags.tld"] />
<#assign sjr=JspTaglibs["/META-INF/tld/struts-jquery-richtext-tags.tld"]/>
<@s.url value="" var="cntxpth"/>
<@s.set name="contextPath" value="#cntxpth"  />
<@s.set name="templateName" value="#templateName"/>
<@s.set name="resourcePath">/${contextPath}templates/${templateName}</@s.set>







<@s.form action="savePost" namespace="/blog" method="POST" id="savePostForm" >
    <@s.hidden name="post.id" />

<div class="grid_8">
    <h2>How to Find Us</h2>

    <div class="img-border">
        <@sjr.ckeditor id="post_content" name="post.content" rows="10" cols="80" width="100%"
        value="%{post.content}" customConfig="${contextPath}/js/config.js"

        uploads="true"
        uploadHref="/${contextPath}fileManager/upload.action"></@sjr.ckeditor>
    </div>
</div>

<div class="grid_4" id="form">

    <h2>Contact Form</h2>
    <fieldset>
        <label>
            <@s.textfield value="%{post.title}" name="post.title"
            onblur="if(this.value=='') this.value='%{post.title}'"
            onfocus="if(this.value =='%{post.title}' ) this.value=''" maxLength="255"/>
        </label>
        <label>
            <@s.textfield value="%{post.keyWords}" name="post.keyWords"
            onblur="if(this.value=='') this.value='%{post.keyWords}'"
            onfocus="if(this.value =='%{post.keyWords}' ) this.value=''" maxLength="255"/>
        </label>
        <label>
            <@s.textfield value="%{post.description}" name="post.description"
            onblur="if(this.value=='') this.value='%{post.description}'"
            onfocus="if(this.value =='%{post.description}' ) this.value=''" maxLength="255"/>
        </label>
        <label>
            <@s.textarea name="post.shortDescription"
            onblur="if(this.value==''){this.value='%{post.shortDescription}'}"
            onfocus="if(this.value=='%{post.shortDescription}'){this.value=''}" />
        </label>

        <div class="btns">
            <button type="reset" style="border: none; background-color: transparent;">
                <a href="#" class="button">Clear</a>
            </button>
            <button type="submit" style="border: none; background-color: transparent;">
                <a href="#" class="button">Save</a>
            </button>
        </div>
    </fieldset>
</div>


<div class="clear"></div>
</@s.form>
